package org.mspring.platform.web.spring;

import javax.servlet.ServletContextEvent;

/**
 *
 * @author Gao Youbo
 * @since 2014年5月14日
 */
public class ContextLoaderListener extends org.springframework.web.context.ContextLoaderListener {

    @Override
    public void contextInitialized(ServletContextEvent event) {
        super.contextInitialized(event);
        System.setProperty("contextPath", event.getServletContext().getContextPath());
        System.setProperty("realPath", event.getServletContext().getRealPath("/"));
    }

}
